package bairui.international.console.web.controller.spread.img;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lianjing.sh.spring.web.controller.base.action.Action;
import com.lianjing.sh.spring.web.controller.enhance.output.FomatOutput;

import bairui.international.service.Service_SpreadImage;

/**
 *
 * 图片管理
 *
 * @generated
 * 
 * @see STest_C_Spread_Img_Manage_Down 测试
 *
 */
@Controller
public class C_Spread_Img_Manage_Down
 extends SC_Spread_Img_Manage_Down 
{
	
	@Autowired private Service_SpreadImage service_SpreadImage;
	
	/**
	 * 下架
	 */
	@Action(Down.class)
	@GetMapping(Down.RequestMappingValue)
	public @FomatOutput @ResponseBody Object down(
		ModelMap map, HttpServletRequest request, 
		@PathVariable(name=Down.PathVariableName.ImgId) long imgId
	) throws Exception {
		service_SpreadImage.down(imgId);
		//
		return null;
	}
	

}
